/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-23
 * Time:18:52
 */
public class Text1 {
    public static void main(String[] args) {
        Text3 fw=new Text2();
        fw.Print();
        fw.name="男孩";
        System.out.println();
    }
}
class Text3{
    String name;
    public void Print()
    {
        System.out.println("Text3");
    }
}
class Text2 extends Text3
{
    String color;
    public void Print()
    {
        System.out.println("Text2");
    }
}
